package com.xxx.utils;


/**
 * Created by louisyuu on 2020/4/29 上午11:31
 */
public class ArgsUtils {
    private ArgsUtils() {
    }

    public static boolean isNullOrEmpty(Object object) {
        return object == null || object.toString().trim().length() == 0;
    }

    public static boolean isNotNullOrEmpty(Object object) {
        return !isNullOrEmpty(object);
    }

    public static int getIntValue(Object object) {
        try {
            return Integer.parseInt(object.toString());
        } catch (NumberFormatException e) {
            //default value
            return 0;
        }
    }


}
